package net.csdn.business.common.domain.request.artical;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticalInfoUpdateDTO {
    @NotBlank(message = "文章id不能为空")
    private String id;
    private String title;
    private String content;
    private String summary;
    private String type;
    private String city;
    private String place;
    private String cover;
    private String jumpUrl;
    private String userId;
    /**
     * 活动类型 1-单日全天，2-单日非全天，3-多日活动
     */
    private String activityType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date activityDate;
}
